package operation;

import book.Book;

import java.util.Scanner;

public class ModName extends Mod{
        @Override
        public void modify(Book book) {
                System.out.print("请输入要修改的书名：");
                Scanner scan = new Scanner(System.in);
                String name = scan.nextLine();
                book.setName(name);
                System.out.println("书名修改成功！");
        }
}
